<?php

$g_lang_cn = array(
'参数错误' => '参数错误！',
'数据不存在' => '你的邮箱不在邀请里面！',
'注册码错误' => '注册码错误！',
'邮箱已注册' => '邀请已使用，注册完毕。如需更改，请联系会务组。',
'网站标题' => '会议注册',
'网站子标题' => '会议在线注册',
'必填' => '必填项',
'提交' => '提交',
'不能为空' => '%s不能为空',
'邮箱格式不正确' => '%s 邮箱格式不正确！',
'注册成功' => '注册成功！',
);


$g_lang_en = array(
'参数错误' => 'Parameter error！',
'数据不存在' => 'Not invited inside your mailbox！',
'注册码错误' => 'Verification code error！',
'邮箱已注册' => 'Invitation has been used, registration is completed. For changes, please contact the secretariat.',
'网站标题' => 'Registration for Conference',
'网站子标题' => 'Online Registration for Conference ',
'必填' => 'Required',
'提交' => 'Submit',
'不能为空' => '%s Can not be empty',
'邮箱格式不正确' => '%s Email format is incorrect！',
'注册成功' => 'Registration is successful！',
);


/**
 * 语言处理函数
 *
 * @param unknown_type $langkey
 * @return 
 */
function _T($langkey)
{
	global $g_lang_cn,$g_lang_en, $cfg;
	
	if ($cfg['lang'] == 'cn') {
		return $g_lang_cn[$langkey];
	}elseif ($cfg['lang'] == 'en') {
		return $g_lang_en[$langkey];
	}
}